package com.cdel.akka.chat;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Messages implements Serializable {

	class LoginMessage implements Serializable {

		private String nickname;

		public LoginMessage(String nickname) {
			this.nickname = nickname;
		}

		public String getNickname() {
			return nickname;
		}
	}

	class ChatMessage implements Serializable {
		private String content;

		public ChatMessage(String s) {
			content = s;
		}

		public String getContent() {
			return content;
		}
	}

	class UserList implements Serializable {

		private String[] users;

		public UserList(String[] users) {
			this.users = users;
		}

		public String[] getUsers() {
			return users;
		}

	}

	class RejectLogin implements Serializable {

		private String cause;

		public RejectLogin(String cause) {
			this.cause = cause;
		}

		public String getCause() {
			return cause;
		}
	}

	class AckLogin implements Serializable {
		private String users;

		public AckLogin(String users) {
			this.users = users;
		}

		public String getUsers() {

			return this.users;

		}
	}

	class ToPrintMessage implements Serializable {
		private String content;

		public ToPrintMessage(String s) {
			this.content = s;
		}

		public String getContent() {
			return this.content;
		}
	}

	class LogoutMessage implements Serializable {
	}
}